import axios from '@/libs/request/axios'

//  查询产品宽限期列表
export const findProductGraceList = (params) => {
    return axios.request({
        url: `/contractBasic/graceInfo/findProductGrace`,
        method: 'POST',
        data: params,
    })
};
//查询地区宽限配置
export const findAreaGraceList = (params) => {
    return axios.request({
        url: `/contractBasic/graceInfo/findAreaGrace`,
        method: 'POST',
        data: params,
    })
};
//保存地区宽限配置
export const saveAreaGraceInfo = (params) => {
    return axios.request({
        url: `/contractBasic/graceInfo/saveAreaGrace`,
        method: 'POST',
        data: params,
    })
};
//保存产品宽限配置
export const saveProductGrace = (params) => {
    return axios.request({
        url: `/contractBasic/graceInfo/saveProductGrace`,
        method: 'POST',
        data: params,
    })
};
//查询公司宽限配置
export const findCompanyGrace = () => {
    return axios.request({
        url: `/contractBasic/graceInfo/findCompanyGrace`,
        method: 'POST'
    })
};
//保存公司宽限配置
export const saveCompanyGrace = (params) => {
    return axios.request({
        url: `/contractBasic/graceInfo/saveCompanyGrace`,
        method: 'POST',
        data: params,
    })
};
//查询产品列表
export const findProductList = () => {
    return axios.request({
        url: `/contractBasic/graceInfo/findProductList`,
        method: 'POST'
    })
};

export const delProductInfo = (params) => {
    return axios.request({
        url: `/contractBasic/graceInfo/delProductInfo`,
        method: 'POST',
        data: params,
    })
};
//删除产品列表
export const delAreaInfo = (params) => {
    return axios.request({
        url: `/contractBasic/graceInfo/delAreaInfo`,
        method: 'POST',
        data: params,
    })
};


//查询地区名称列表
export const findAddressList = (params) => {
    return axios.request({
        url: `/contractBasic/graceInfo/findAddressList`,
        method: 'POST',
        data: params,
    })
};

//删除产品列表
export const getProduceCode = (params) => {
    return axios.request({
        url: `/contractBasic/graceInfo/getProduceCode`,
        method: 'POST',
        data: params,
    })
};
